package com.yxhl.zoume.core.func.webpage.info;

import com.yxhl.zoume.BuildConfig;
import com.yxhl.zoume.R;
import com.yxhl.zoume.data.DataConstants;

/**
 * Created by vhawk on 16/4/12.
 */
public enum WebPageEntrance {
    REGISTER_AGREEMENT("", R.raw.register_agreement),// 注册协议

    TICKETING_INFORMATION("", R.raw.ticketing_information),// 购票须知


    ABOUT_US(DataConstants.ZOU_ME_BUS_ABOUT_US_URL, 0),// 关于我们

    PAYMENT_INTRODUCTION("", R.raw.payment_introduction),//支付说明

    FAQ("", R.raw.faq),//常见问题

    HELP_BUS(DataConstants.HELP_BUS, 0),//巴士帮助

    HELP_EXPRESS(DataConstants.HELP_EXPRESS, 0),//快车帮助

    HELP_SPECIAL(DataConstants.HELP_SPECIAL, 0),//专车帮助

    HELP_OFFICIAL(DataConstants.HELP_OFFICIAL, 0),//公务车帮助

    VERSION_INTROCUCTION(DataConstants.ZOU_ME_BUS_ABOUT_VERSION + BuildConfig.VERSION_NAME + ".html", 0),//版本介绍

    ZOU_ME_BUS_INTRODUCTION(DataConstants.ZOU_ME_BUS_NOTICE_URL, R.raw.shuttle_introduction),//巴士购票说明

    FIXED_BUS_INTRODUCTION(DataConstants.FIXED_BUS_NOTICE_URL, 0),//定制巴士购票说明

    TICKET_BUS_INTRODUCTION(DataConstants.TICKET_BUS_NOTICE_URL, 0),// 售票说明

    TICKET_BUS_REFUND_NOTICE(DataConstants.TICKET_BUS_REFUND_NOTICE, 0),// 乘客须知

    TICKET_CODE_HELP(DataConstants.TICKET_CODE_HELP_URL, 0),// 售票帮助

    SPECIAL_CAR_PASSENGER_NOTICE(DataConstants.PASSENGER_NOTICE_URL, 0),// 快车乘车须知

    SPECIAL_CAR_PRICE_INTRODUCTION(DataConstants.SPECIAL_CAR_PRICE_URL, 0),//快车计价规则

    WALLET_INTRODUCTIONS(DataConstants.WALLET_INTRODUCTIONS, 0),//  钱包

    PRICE_RULES_DETAIL(DataConstants.EXPRESS_CAR_PRICE_URL, 0),// 专车计价规则

    USER_AGREEMENT(DataConstants.USER_AGREEMENT, 0);


    private String url;
    private int contentRes;

    /**
     * 统一管理所有说明页面的枚举
     *
     * @param url        需要打开静态页面的url，如果打开本地页面的话，传空
     * @param contentRes 本地页面的resid，如果是静态页面的话，这个参数无影响
     */
    WebPageEntrance(String url, int contentRes) {
        this.url = url;
        this.contentRes = contentRes;
    }

    public String getUrl() {
        return url;
    }

    public int getContentRes() {
        return contentRes;
    }
}
